package org.semanticflash.rdf.io
{
	
	
	import org.semanticflash.rdf.triple.RDFTriple;


	/**
	 * 
	 * 
	 * @author aldo.bucchi@gmail.com
	 * 
	 */
	public class RDFArrayHandler implements IRDFHandler
	{
		
		private var _target:Array;
		
		public function get target( ):Array
		{
			return _target;
		}
		
		
		
		public function RDFArrayHandler( target:Array = null )
		{
		
			if ( target == null )
				target = new Array( );
				
			_target = target;
		
		}


		public function startRDF():void
		{
		}
		
		public function endRDF():void
		{
		}
		
		public function handleTriple( triple:RDFTriple ):void
		{
			_target.push( triple );
		}
		
	}
}